#{extends 'CRUD/layout.html' /}
#{set title:messages.get('crud.blank.title', type.modelName) /}

<div id="crudBlank" class="${type.name}">

    <h2 id="crudBlankTitle">&{'crud.blank.title', type.modelName}</h2>

    <div class="objectForm">
     #{form action:@create(), enctype:'multipart/form-data'}
       #{crud.form }
       		 #{crud.custom 'localidad'}
	    	  	#{customs.customFieldLocalidad 
	    	  		selected:object.localidad, localidades:localidades, 
	    	  		provinciaSelected: provinciaSelected, provincias: provincias,
	    	  		paisSelected:paisSelected, paises: paises, 
	    	  		field:object /}
	    	 #{/crud.custom}
	    	 #{crud.custom 'origenDato'}
	    	  	#{customs.customFieldOrigenDato 
	    	  		selected:object.origenDato, 
	    	  		origenDatos: origenDatos,
	    	  		field:object /}
	    	 #{/crud.custom}
	    	 #{crud.custom 'sector'}
	    	  	#{customs.customFieldSector 
	    	  		selected:object.subrubro, subrubros:subrubros, 
	    	  		sectorSelected: sectorSelected, sectores: sectores,
	    	  		ramaSelected: ramaSelected, ramas: ramas,
	    	  		rubroSelected:rubroSelected, rubros: rubros, 
	    	  		field:object /}
	    	 #{/crud.custom}	
	    	 #{crud.custom 'rama'}
	    	  	#{customs.customFieldRama 
	    	  		selected:object.subrubro, subrubros:subrubros, 
	    	  		sectorSelected: sectorSelected, sectores: sectores,
	    	  		ramaSelected: ramaSelected, ramas: ramas,
	    	  		rubroSelected:rubroSelected, rubros: rubros, 
	    	  		field:object /}
	    	 #{/crud.custom}	
	    	 #{crud.custom 'rubro'}
	    	  	#{customs.customFieldRubro 
	    	  		selected:object.subrubro, subrubros:subrubros, 
	    	  		sectorSelected: sectorSelected, sectores: sectores,
	    	  		ramaSelected: ramaSelected, ramas: ramas,
	    	  		rubroSelected:rubroSelected, rubros: rubros, 
	    	  		field:object /}
	    	 #{/crud.custom}	
	    	 #{crud.custom 'subrubro'}
	    	  	#{customs.customFieldSubrubro 
	    	  		selected:object.subrubro, subrubros:subrubros, 
	    	  		sectorSelected: sectorSelected, sectores: sectores,
	    	  		ramaSelected: ramaSelected, ramas: ramas,
	    	  		rubroSelected:rubroSelected, rubros: rubros, 
	    	  		field:object /}
	    	 #{/crud.custom}	
		     #{crud.custom 'contactos'}
		    	#{customs.customFieldContacto
		    		contactosEmpresa: contactosEmpresa, 
		    	  	contactos: contactos,
		    	  	organizacion:null /}
		     #{/crud.custom}     		    
	    	 #{crud.custom 'arcadianos'}
	    	  	#{customs.customOrganizacionFieldArcadiano
	    	  		arcadianosOrg: arcadianosOrg, 
	    	  		arcadianos: arcadianos,
	    	  		organizacion:null /}
	    	 #{/crud.custom} 	 
	    	 #{crud.custom 'intermediario'}
	    	  	#{customs.customOrganizacionIntermediario 
	    	  		selected:object.intermediario, 
	    	  		intermediarios: intermediarios,
	    	  		field:object /}
	    	 #{/crud.custom}
        #{/crud.form}
        <p class="crudButtons">
            <input type="submit" name="_saveAndContinue" value="&{'crud.save', type.modelName}" />
        </p>
    #{/form}
    </div>

</div>